<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('js_url'))
{
    function js_url($filename = '')
    {
        $CI =& get_instance();
        $js = '<script type="text/javascript" src="' . $CI->config->site_url('public/js/' . $filename) . '"></script>
';

        return $js;
    }
}

if ( ! function_exists('css_url'))
{
    function css_url($filename = '')
    {
        $CI =& get_instance();
        $css = '<link href="' . $CI->config->site_url('public/css/' . $filename) . '" rel="stylesheet" />
';

        return $css;
    }
}
